package com.hp.gxw.api;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.hp.gxw.constant.R;
import com.hp.gxw.entity.Process;
import com.hp.gxw.service.IProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

@Component
@RequestMapping("/api/process")
public class ProcessApi {

    @Autowired
    private IProcessService iProcessService;

    @RequestMapping("/register")
    @ResponseBody
    public R process_register(@RequestBody Map<String, Object> map){
        if(map == null){
            return R.error("参数为空");
        }
        if(map.get("code") == null){
            return R.error("code为必填项");
        }
        Process process = iProcessService.getOne(new LambdaQueryWrapper<Process>().eq(Process::getCode, map.get("code")));
        if(process == null){
            process = new Process();
            process.setCreateTime(new Date());
        }
        process.setCode(map.get("code").toString());
        if(map.get("name") == null){
            return R.error("name为必填项");
        }
        process.setName(map.get("name").toString());
        if(map.get("type") == null){
            return R.error("type为必填项");
        }
        if(!(map.get("type").toString().equals("订单") || map.get("type").toString().equals("加工"))){
            return R.error("type的值必须为订单或者加工");
        }
        process.setType(map.get("type").toString());
        if(map.get("type").toString().equals("加工")){
            if(map.get("managerScale") == null){
                return R.error("managerScale为必填项");
            }
            if(map.get("teamType") == null){
                return R.error("teamType为必填项");
            }
        }
        if(map.get("managerScale") != null){
            try {
                process.setManagerScale(new BigDecimal(map.get("managerScale").toString()));
            }catch (NumberFormatException ne){
                ne.printStackTrace();
                return R.error("管理属性占比必须为数字");
            }
        }
        if(map.get("teamType") != null){
            process.setTeamType(map.get("teamType").toString());
        }
        try {
            iProcessService.saveOrUpdate(process);
        }catch (Exception e){
            e.printStackTrace();
            return R.error("接口异常");
        }
        return R.ok("写入成功");
    }

    @GetMapping("/productTest")
    @ResponseBody
    public Object productTest(String date){
        String productData = "[" +
                "    {" +
                "        \"wid\": \"0272b775-d3fc-478a-80cf-b9febf084d30\"," +
                "        \"step_sequence\": \"1\"," +
                "        \"group_id\": \"80242a58-fc63-46cf-9b27-392409d217ec\"," +
                "        \"group_name\": \"打字\"," +
                "        \"mo_no\": \"HD20230005-02\"," +
                "        \"inner_order_code\": \"HD20230005\"," +
                "        \"key_part_no\": \"XN6133-G-1\"," +
                "        \"target_qty\": \"212\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"H2312010\"," +
                "        \"in_station_time\": \"2023/12/24 10:09:54\"," +
                "        \"out_station_time\": \"2023/12/24 20:00:00\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"0704552d-19f6-49d6-8015-c11c206ca041\"," +
                "        \"step_sequence\": \"3\"," +
                "        \"group_id\": \"b93d1dd0-a3b9-4d38-95d8-42b10c46b111\"," +
                "        \"group_name\": \"老化后常温纹波测试\"," +
                "        \"mo_no\": \"HC20230631-01\"," +
                "        \"inner_order_code\": \"HC20230631\"," +
                "        \"key_part_no\": \"SW1764BMT(2.5)\"," +
                "        \"target_qty\": \"249\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"FXY19460/0-b\"," +
                "        \"in_station_time\": \"2023/12/23 22:07:49\"," +
                "        \"out_station_time\": \"2023/12/24 0:00:00\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"0c738895-2649-4fea-9594-54d91f6e2ca7\"," +
                "        \"step_sequence\": \"9\"," +
                "        \"group_id\": \"219538f6-435a-40c1-a5a1-a4789fb6e8e4\"," +
                "        \"group_name\": \"烘烤\"," +
                "        \"mo_no\": \"HC20230550-03\"," +
                "        \"inner_order_code\": \"HC20230550\"," +
                "        \"key_part_no\": \"XND2260MQP\"," +
                "        \"target_qty\": \"1435\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y23227B/0-h\"," +
                "        \"in_station_time\": \"2023/12/24 20:13:40\"," +
                "        \"out_station_time\": \"2023/12/24 22:13:40\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"0fcef0dd-1fc0-4d83-9a2f-0a083d569f68\"," +
                "        \"step_sequence\": \"5\"," +
                "        \"group_id\": \"a6477c94-318b-4885-9f56-e6f00cb33eba\"," +
                "        \"group_name\": \"老化前常温测试\"," +
                "        \"mo_no\": \"HC20230633-01\"," +
                "        \"inner_order_code\": \"HC20230633\"," +
                "        \"key_part_no\": \"XND4351MQL\"," +
                "        \"target_qty\": \"495\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y23055B/0-d；2341\"," +
                "        \"in_station_time\": \"2023/12/24 8:45:54\"," +
                "        \"out_station_time\": \"2023/12/24 19:46:00\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"11aee9c7-e39a-4ba7-908b-d1a973921789\"," +
                "        \"step_sequence\": \"4\"," +
                "        \"group_id\": \"c321efa6-76d5-4bf3-8034-508a1fbe8efe\"," +
                "        \"group_name\": \"温度循环\"," +
                "        \"mo_no\": \"HC20230633-03\"," +
                "        \"inner_order_code\": \"HC20230633\"," +
                "        \"key_part_no\": \"XND4351MQL\"," +
                "        \"target_qty\": \"550\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y23055B/0-e；2341\"," +
                "        \"in_station_time\": \"2023/12/23 18:23:00\"," +
                "        \"out_station_time\": \"2023/12/24 0:00:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"c321efa6-76d5-4bf3-8034-508a1fbe8efe\"," +
                "                \"mo_no\": \"HC20230633-03\"," +
                "                \"machine_code\": \"SY-00022\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"146e4d53-e432-40f0-ac95-c939f716041c\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"aabc9420-ad83-4e85-a1f3-5ed0f5ea64d9\"," +
                "        \"group_name\": \"常温测试（通道 时钟）\"," +
                "        \"mo_no\": \"HC20230660-01\"," +
                "        \"inner_order_code\": \"HC20230660\"," +
                "        \"key_part_no\": \"XND2260MQP\"," +
                "        \"target_qty\": \"1525\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"2212\"," +
                "        \"in_station_time\": \"2023/12/24 8:40:14\"," +
                "        \"out_station_time\": \"2023/12/24 19:48:01\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"16bd9ca1-86d6-4ef5-89f2-8a6ff7217eb6\"," +
                "        \"step_sequence\": \"10\"," +
                "        \"group_id\": \"0a84b130-c9dd-4e04-aae3-19f5da18ceaa\"," +
                "        \"group_name\": \"老化后低温测试\"," +
                "        \"mo_no\": \"HC20230211-01\"," +
                "        \"inner_order_code\": \"HC20230211\"," +
                "        \"key_part_no\": \"HKA2910-FSC\"," +
                "        \"target_qty\": \"1700\"," +
                "        \"cust_code\": \"XA20220006\"," +
                "        \"cust_lot\": \"2333\"," +
                "        \"in_station_time\": \"2023/12/24 10:23:55\"," +
                "        \"out_station_time\": \"2023/12/24 23:59:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"0a84b130-c9dd-4e04-aae3-19f5da18ceaa\"," +
                "                \"mo_no\": \"HC20230211-01\"," +
                "                \"machine_code\": \"CS-00447\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"1c5fd47d-da7c-413f-8d59-fdf6616fdac2\"," +
                "        \"step_sequence\": \"3\"," +
                "        \"group_id\": \"2b017f5a-db29-467a-a11a-44594491da74\"," +
                "        \"group_name\": \"验收高温测试\"," +
                "        \"mo_no\": \"HC20230665-01\"," +
                "        \"inner_order_code\": \"HC20230665\"," +
                "        \"key_part_no\": \"XND2233IQQ\"," +
                "        \"target_qty\": \"63\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"2212\"," +
                "        \"in_station_time\": \"2023/12/24 3:11:23\"," +
                "        \"out_station_time\": \"2023/12/24 9:11:40\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"1df92cfb-2e99-4900-8cd1-2bfed77f2d2b\"," +
                "        \"step_sequence\": \"3\"," +
                "        \"group_id\": \"b93d1dd0-a3b9-4d38-95d8-42b10c46b111\"," +
                "        \"group_name\": \"老化后常温纹波测试\"," +
                "        \"mo_no\": \"HC20230631-04\"," +
                "        \"inner_order_code\": \"HC20230631\"," +
                "        \"key_part_no\": \"SW1764BMT(2.5)\"," +
                "        \"target_qty\": \"720\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"FXY19460/0-b\"," +
                "        \"in_station_time\": \"2023/12/24 13:00:08\"," +
                "        \"out_station_time\": \"2023/12/24 19:56:58\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"21feb111-f9a0-4b35-a00c-aa8c28ddc08d\"," +
                "        \"step_sequence\": \"1\"," +
                "        \"group_id\": \"c4d300c2-2c93-4923-b8c7-2c4295e6ac6b\"," +
                "        \"group_name\": \"常温测试\"," +
                "        \"mo_no\": \"HC20230656-01\"," +
                "        \"inner_order_code\": \"HC20230656\"," +
                "        \"key_part_no\": \"XND946MQI\"," +
                "        \"target_qty\": \"243\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"RBFX22148-1/0-XY2\"," +
                "        \"in_station_time\": \"2023/12/24 10:32:18\"," +
                "        \"out_station_time\": \"2023/12/24 14:32:24\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"2437ae10-261f-41d4-be02-998c6ff1fa62\"," +
                "        \"step_sequence\": \"12\"," +
                "        \"group_id\": \"cc61516c-dc8f-41a8-a43d-289396c4832f\"," +
                "        \"group_name\": \"老化后高温测试\"," +
                "        \"mo_no\": \"HC20230554-02\"," +
                "        \"inner_order_code\": \"HC20230554\"," +
                "        \"key_part_no\": \"XND4101MCB\"," +
                "        \"target_qty\": \"450\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y203676B/0-n；2409\"," +
                "        \"in_station_time\": \"2023/12/24 20:38:24\"," +
                "        \"out_station_time\": \"2023/12/24 23:50:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"cc61516c-dc8f-41a8-a43d-289396c4832f\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00167\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"cc61516c-dc8f-41a8-a43d-289396c4832f\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00167\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"cc61516c-dc8f-41a8-a43d-289396c4832f\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00168\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"cc61516c-dc8f-41a8-a43d-289396c4832f\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00168\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"cc61516c-dc8f-41a8-a43d-289396c4832f\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00263\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"cc61516c-dc8f-41a8-a43d-289396c4832f\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00263\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"cc61516c-dc8f-41a8-a43d-289396c4832f\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00348\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"cc61516c-dc8f-41a8-a43d-289396c4832f\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00348\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"3d6fd8da-7945-4e1e-8924-aa4a1614e627\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"5dac2802-2e1d-475e-a8c4-cdbff3158ea5\"," +
                "        \"group_name\": \"稳定性烘焙\"," +
                "        \"mo_no\": \"HC20230613-03\"," +
                "        \"inner_order_code\": \"HC20230613\"," +
                "        \"key_part_no\": \"XND4101MCB\"," +
                "        \"target_qty\": \"450\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y203676B/0-o；2417\"," +
                "        \"in_station_time\": \"2023/12/23 4:50:42\"," +
                "        \"out_station_time\": \"2023/12/24 4:50:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"5dac2802-2e1d-475e-a8c4-cdbff3158ea5\"," +
                "                \"mo_no\": \"HC20230613-03\"," +
                "                \"machine_code\": \"SY-00102\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"405e576c-cb4c-4885-ab4f-faa2614867d8\"," +
                "        \"step_sequence\": \"8\"," +
                "        \"group_id\": \"e895a0d4-d3e9-431b-aebf-afba787c6656\"," +
                "        \"group_name\": \"OS常温测试（终测）\"," +
                "        \"mo_no\": \"HC20230550-03\"," +
                "        \"inner_order_code\": \"HC20230550\"," +
                "        \"key_part_no\": \"XND2260MQP\"," +
                "        \"target_qty\": \"1435\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y23227B/0-h\"," +
                "        \"in_station_time\": \"2023/12/24 6:39:14\"," +
                "        \"out_station_time\": \"2023/12/24 7:58:11\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"e895a0d4-d3e9-431b-aebf-afba787c6656\"," +
                "                \"mo_no\": \"HC20230550-03\"," +
                "                \"machine_code\": \"CS-00246\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"e895a0d4-d3e9-431b-aebf-afba787c6656\"," +
                "                \"mo_no\": \"HC20230550-03\"," +
                "                \"machine_code\": \"CS-00247\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"e895a0d4-d3e9-431b-aebf-afba787c6656\"," +
                "                \"mo_no\": \"HC20230550-03\"," +
                "                \"machine_code\": \"CS-00247\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"e895a0d4-d3e9-431b-aebf-afba787c6656\"," +
                "                \"mo_no\": \"HC20230550-03\"," +
                "                \"machine_code\": \"CS-00247\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"457f76aa-1eb1-4309-a66d-6be99be6e051\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"10b8631a-acd0-4858-b874-4b7030400c9b\"," +
                "        \"group_name\": \"FQC\"," +
                "        \"mo_no\": \"GS20230157-05\"," +
                "        \"inner_order_code\": \"GS20230157\"," +
                "        \"key_part_no\": \"X127\"," +
                "        \"target_qty\": \"25\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"2339AL\"," +
                "        \"in_station_time\": \"2023/12/23 5:05:38\"," +
                "        \"out_station_time\": \"2023/12/24 5:15:56\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"474bcd81-70d7-44dc-9dd8-7f1df8a17b40\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"10b8631a-acd0-4858-b874-4b7030400c9b\"," +
                "        \"group_name\": \"FQC\"," +
                "        \"mo_no\": \"GS20230157-04\"," +
                "        \"inner_order_code\": \"GS20230157\"," +
                "        \"key_part_no\": \"X127\"," +
                "        \"target_qty\": \"25\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"2339AX\"," +
                "        \"in_station_time\": \"2023/12/22 13:49:00\"," +
                "        \"out_station_time\": \"2023/12/24 5:14:58\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"4858b938-8afe-4a71-9fc0-53c596e35d6b\"," +
                "        \"step_sequence\": \"3\"," +
                "        \"group_id\": \"b93d1dd0-a3b9-4d38-95d8-42b10c46b111\"," +
                "        \"group_name\": \"老化后常温纹波测试\"," +
                "        \"mo_no\": \"HC20230631-03\"," +
                "        \"inner_order_code\": \"HC20230631\"," +
                "        \"key_part_no\": \"SW1764BMT(2.5)\"," +
                "        \"target_qty\": \"720\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"FXY19460/0-b\"," +
                "        \"in_station_time\": \"2023/12/24 8:30:36\"," +
                "        \"out_station_time\": \"2023/12/24 12:00:43\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"4c407efe-9e5c-422e-80a6-d834f8b84f0c\"," +
                "        \"step_sequence\": \"18\"," +
                "        \"group_id\": \"802e46e8-964c-46d1-a534-05d28e73110e\"," +
                "        \"group_name\": \"试验后常温AC测试\"," +
                "        \"mo_no\": \"HC20230546-01\"," +
                "        \"inner_order_code\": \"HC20230546\"," +
                "        \"key_part_no\": \"SX8042MF\"," +
                "        \"target_qty\": \"3053\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"RBFXY231133/2-f\"," +
                "        \"in_station_time\": \"2023/12/24 17:31:17\"," +
                "        \"out_station_time\": \"2023/12/24 20:02:10\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"4c5df24b-f9c3-4139-9dc4-2c621ae18e56\"," +
                "        \"step_sequence\": \"17\"," +
                "        \"group_id\": \"9a448b92-6332-4dd6-b0e9-a3755f070a99\"," +
                "        \"group_name\": \"试验后常温DC测试\"," +
                "        \"mo_no\": \"HC20230546-01\"," +
                "        \"inner_order_code\": \"HC20230546\"," +
                "        \"key_part_no\": \"SX8042MF\"," +
                "        \"target_qty\": \"3053\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"RBFXY231133/2-f\"," +
                "        \"in_station_time\": \"2023/12/24 8:48:28\"," +
                "        \"out_station_time\": \"2023/12/24 16:46:08\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"504db311-6524-4160-b1ef-8a42674ae8c7\"," +
                "        \"step_sequence\": \"4\"," +
                "        \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "        \"group_name\": \"老炼\"," +
                "        \"mo_no\": \"HC20230621-01\"," +
                "        \"inner_order_code\": \"HC20230621\"," +
                "        \"key_part_no\": \"SX8042MF\"," +
                "        \"target_qty\": \"1859\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"RBFXY231142/0-e\"," +
                "        \"in_station_time\": \"2023/12/17 15:00:00\"," +
                "        \"out_station_time\": \"2023/12/24 7:00:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "                \"mo_no\": \"HC20230621-01\"," +
                "                \"machine_code\": \"SY-00008\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "                \"mo_no\": \"HC20230621-01\"," +
                "                \"machine_code\": \"SY-00020\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "                \"mo_no\": \"HC20230621-01\"," +
                "                \"machine_code\": \"SY-00075\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"5402774b-0f4c-4c65-a741-8dfad9410ccb\"," +
                "        \"step_sequence\": \"5\"," +
                "        \"group_id\": \"c321efa6-76d5-4bf3-8034-508a1fbe8efe\"," +
                "        \"group_name\": \"温度循环\"," +
                "        \"mo_no\": \"HC20230602-05\"," +
                "        \"inner_order_code\": \"HC20230602\"," +
                "        \"key_part_no\": \"XND4102MCB\"," +
                "        \"target_qty\": \"590\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y203677B/0-y\"," +
                "        \"in_station_time\": \"2023/12/24 4:20:40\"," +
                "        \"out_station_time\": \"2023/12/24 9:30:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"c321efa6-76d5-4bf3-8034-508a1fbe8efe\"," +
                "                \"mo_no\": \"HC20230602-05\"," +
                "                \"machine_code\": \"SY-00022\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"57e5383f-e492-47ab-913b-5450e4085e35\"," +
                "        \"step_sequence\": \"8\"," +
                "        \"group_id\": \"cc61516c-dc8f-41a8-a43d-289396c4832f\"," +
                "        \"group_name\": \"老化后高温测试\"," +
                "        \"mo_no\": \"HC20230519-4\"," +
                "        \"inner_order_code\": \"HC20230519\"," +
                "        \"key_part_no\": \"HKA32133-PSC\"," +
                "        \"target_qty\": \"1000\"," +
                "        \"cust_code\": \"XA20220006\"," +
                "        \"cust_lot\": \"2345\"," +
                "        \"in_station_time\": \"2023/12/24 7:02:35\"," +
                "        \"out_station_time\": \"2023/12/24 8:01:46\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"5abe1e87-8abd-44c8-9dec-f8380439a61b\"," +
                "        \"step_sequence\": \"4\"," +
                "        \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "        \"group_name\": \"老炼\"," +
                "        \"mo_no\": \"HC20230621-01\"," +
                "        \"inner_order_code\": \"HC20230621\"," +
                "        \"key_part_no\": \"SX8042MF\"," +
                "        \"target_qty\": \"1859\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"RBFXY231142/0-e\"," +
                "        \"in_station_time\": \"2023/12/17 14:55:00\"," +
                "        \"out_station_time\": \"2023/12/24 6:55:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "                \"mo_no\": \"HC20230621-01\"," +
                "                \"machine_code\": \"SY-00008\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "                \"mo_no\": \"HC20230621-01\"," +
                "                \"machine_code\": \"SY-00020\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "                \"mo_no\": \"HC20230621-01\"," +
                "                \"machine_code\": \"SY-00075\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"66475c6c-d553-4397-abc7-1917267fe1ed\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"10b8631a-acd0-4858-b874-4b7030400c9b\"," +
                "        \"group_name\": \"FQC\"," +
                "        \"mo_no\": \"HS20230655-01\"," +
                "        \"inner_order_code\": \"HS20230655\"," +
                "        \"key_part_no\": \"XND13388MQD\"," +
                "        \"target_qty\": \"50\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y204570B/0-XY3\"," +
                "        \"in_station_time\": \"2023/12/24 6:51:09\"," +
                "        \"out_station_time\": \"2023/12/24 9:13:06\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"6791b247-1530-42f4-83f3-270172681953\"," +
                "        \"step_sequence\": \"1\"," +
                "        \"group_id\": \"df94056d-7114-4265-97ca-b5f2d749b3ef\"," +
                "        \"group_name\": \"高温贮存\"," +
                "        \"mo_no\": \"GS20230168-01\"," +
                "        \"inner_order_code\": \"GS20230168\"," +
                "        \"key_part_no\": \"X137\"," +
                "        \"target_qty\": \"20\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"IB\"," +
                "        \"in_station_time\": \"2023/12/22 21:30:20\"," +
                "        \"out_station_time\": \"2023/12/24 21:30:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"df94056d-7114-4265-97ca-b5f2d749b3ef\"," +
                "                \"mo_no\": \"GS20230168-01\"," +
                "                \"machine_code\": \"SY-00102\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"68acc55e-d4b5-44ed-9cf3-9640653eaf84\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"10b8631a-acd0-4858-b874-4b7030400c9b\"," +
                "        \"group_name\": \"FQC\"," +
                "        \"mo_no\": \"HS20230656-01\"," +
                "        \"inner_order_code\": \"HS20230656\"," +
                "        \"key_part_no\": \"XND42482MQI\"," +
                "        \"target_qty\": \"50\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y22155B/0-XY1\"," +
                "        \"in_station_time\": \"2023/12/24 6:51:49\"," +
                "        \"out_station_time\": \"2023/12/24 9:12:44\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"728901f9-ab45-44e2-80a7-8f2314ab85fc\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"5dac2802-2e1d-475e-a8c4-cdbff3158ea5\"," +
                "        \"group_name\": \"稳定性烘焙\"," +
                "        \"mo_no\": \"HC20230613-01\"," +
                "        \"inner_order_code\": \"HC20230613\"," +
                "        \"key_part_no\": \"XND4101MCB\"," +
                "        \"target_qty\": \"300\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y203676B/0-o；2417\"," +
                "        \"in_station_time\": \"2023/12/23 4:50:55\"," +
                "        \"out_station_time\": \"2023/12/24 4:50:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"5dac2802-2e1d-475e-a8c4-cdbff3158ea5\"," +
                "                \"mo_no\": \"HC20230613-01\"," +
                "                \"machine_code\": \"SY-00102\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"8302902d-a32a-4949-80b5-de0361a0e126\"," +
                "        \"step_sequence\": \"5\"," +
                "        \"group_id\": \"a6477c94-318b-4885-9f56-e6f00cb33eba\"," +
                "        \"group_name\": \"老化前常温测试\"," +
                "        \"mo_no\": \"HC20230633-01\"," +
                "        \"inner_order_code\": \"HC20230633\"," +
                "        \"key_part_no\": \"XND4351MQL\"," +
                "        \"target_qty\": \"495\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y23055B/0-d；2341\"," +
                "        \"in_station_time\": \"2023/12/23 20:30:06\"," +
                "        \"out_station_time\": \"2023/12/24 7:59:12\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"84146adf-6e83-411e-92ab-8b80460d805d\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"10b8631a-acd0-4858-b874-4b7030400c9b\"," +
                "        \"group_name\": \"FQC\"," +
                "        \"mo_no\": \"HS20230610-04\"," +
                "        \"inner_order_code\": \"HS20230610\"," +
                "        \"key_part_no\": \"GM4680-1000\"," +
                "        \"target_qty\": \"115\"," +
                "        \"cust_code\": \"CD20230015\"," +
                "        \"cust_lot\": \"2318\"," +
                "        \"in_station_time\": \"2023/12/23 9:46:35\"," +
                "        \"out_station_time\": \"2023/12/24 6:31:14\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"89c08e28-0551-4521-9279-0d179714ed96\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"de5dcfe2-cd0a-4c4f-b31c-045e7cc77f82\"," +
                "        \"group_name\": \"验收常温测试\"," +
                "        \"mo_no\": \"HC20230665-01\"," +
                "        \"inner_order_code\": \"HC20230665\"," +
                "        \"key_part_no\": \"XND2233IQQ\"," +
                "        \"target_qty\": \"63\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"2212\"," +
                "        \"in_station_time\": \"2023/12/24 0:10:28\"," +
                "        \"out_station_time\": \"2023/12/24 3:00:00\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"8b634232-eeca-462b-8263-23ee46928051\"," +
                "        \"step_sequence\": \"8\"," +
                "        \"group_id\": \"3561b835-afc5-43bb-9cfe-67dd596396ce\"," +
                "        \"group_name\": \"老化后低温DC测试\"," +
                "        \"mo_no\": \"HC20230586-01\"," +
                "        \"inner_order_code\": \"HC20230586\"," +
                "        \"key_part_no\": \"SX8042MF\"," +
                "        \"target_qty\": \"1972\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"RBFXY231142/0-g\"," +
                "        \"in_station_time\": \"2023/12/24 17:09:09\"," +
                "        \"out_station_time\": \"2023/12/24 20:06:53\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"92f5f6a0-8b79-4b7f-be3a-48b49906ec80\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"aabc9420-ad83-4e85-a1f3-5ed0f5ea64d9\"," +
                "        \"group_name\": \"常温测试（通道 时钟）\"," +
                "        \"mo_no\": \"HC20230660-01\"," +
                "        \"inner_order_code\": \"HC20230660\"," +
                "        \"key_part_no\": \"XND2260MQP\"," +
                "        \"target_qty\": \"1525\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"2212\"," +
                "        \"in_station_time\": \"2023/12/24 8:57:47\"," +
                "        \"out_station_time\": \"2023/12/24 19:37:43\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"938f67fd-cda5-4532-89d7-ceb6d1bacf7d\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"10b8631a-acd0-4858-b874-4b7030400c9b\"," +
                "        \"group_name\": \"FQC\"," +
                "        \"mo_no\": \"HS20230674-01\"," +
                "        \"inner_order_code\": \"HS20230674\"," +
                "        \"key_part_no\": \"XND2320MM\"," +
                "        \"target_qty\": \"154\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y23233B\"," +
                "        \"in_station_time\": \"2023/12/23 19:24:16\"," +
                "        \"out_station_time\": \"2023/12/24 6:04:55\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"9686f9f6-19dc-4e6a-a72f-f523e25cf1a5\"," +
                "        \"step_sequence\": \"9\"," +
                "        \"group_id\": \"0a84b130-c9dd-4e04-aae3-19f5da18ceaa\"," +
                "        \"group_name\": \"老化后低温测试\"," +
                "        \"mo_no\": \"HC20230383-02-1\"," +
                "        \"inner_order_code\": \"HC20230383\"," +
                "        \"key_part_no\": \"XND7992MQF\"," +
                "        \"target_qty\": \"400\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y22214B/0-b\"," +
                "        \"in_station_time\": \"2023/12/24 8:32:22\"," +
                "        \"out_station_time\": \"2023/12/24 20:01:22\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"982f544c-6d2b-4df9-a410-9e815ce39b7c\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"5dac2802-2e1d-475e-a8c4-cdbff3158ea5\"," +
                "        \"group_name\": \"稳定性烘焙\"," +
                "        \"mo_no\": \"HC20230613-04\"," +
                "        \"inner_order_code\": \"HC20230613\"," +
                "        \"key_part_no\": \"XND4101MCB\"," +
                "        \"target_qty\": \"450\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y203676B/0-o；2417\"," +
                "        \"in_station_time\": \"2023/12/23 4:50:31\"," +
                "        \"out_station_time\": \"2023/12/24 4:50:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"5dac2802-2e1d-475e-a8c4-cdbff3158ea5\"," +
                "                \"mo_no\": \"HC20230613-04\"," +
                "                \"machine_code\": \"SY-00102\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"9af96485-aa5a-4122-b040-c84da462d253\"," +
                "        \"step_sequence\": \"21\"," +
                "        \"group_id\": \"959fdfd1-7bea-437e-a24e-45710ec9ad9d\"," +
                "        \"group_name\": \"老炼10\"," +
                "        \"mo_no\": \"HC20230471-01\"," +
                "        \"inner_order_code\": \"HC20230471\"," +
                "        \"key_part_no\": \"HKA2921-CSC\"," +
                "        \"target_qty\": \"45\"," +
                "        \"cust_code\": \"XA20220006\"," +
                "        \"cust_lot\": \"2336\"," +
                "        \"in_station_time\": \"2023/12/20 9:30:00\"," +
                "        \"out_station_time\": \"2023/12/24 13:30:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"959fdfd1-7bea-437e-a24e-45710ec9ad9d\"," +
                "                \"mo_no\": \"HC20230471-01\"," +
                "                \"machine_code\": \"SY-00123\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"9bec4a04-4568-4041-9436-b94ac1b16d9c\"," +
                "        \"step_sequence\": \"3\"," +
                "        \"group_id\": \"b93d1dd0-a3b9-4d38-95d8-42b10c46b111\"," +
                "        \"group_name\": \"老化后常温纹波测试\"," +
                "        \"mo_no\": \"HC20230631-03\"," +
                "        \"inner_order_code\": \"HC20230631\"," +
                "        \"key_part_no\": \"SW1764BMT(2.5)\"," +
                "        \"target_qty\": \"720\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"FXY19460/0-b\"," +
                "        \"in_station_time\": \"2023/12/24 5:10:18\"," +
                "        \"out_station_time\": \"2023/12/24 6:09:19\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"9d6a264a-4079-4d29-aeed-b2774451ba56\"," +
                "        \"step_sequence\": \"1\"," +
                "        \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "        \"group_name\": \"老炼\"," +
                "        \"mo_no\": \"HS20230654-02\"," +
                "        \"inner_order_code\": \"HS20230654\"," +
                "        \"key_part_no\": \"XND2233MQQ\"," +
                "        \"target_qty\": \"5\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"2202\"," +
                "        \"in_station_time\": \"2023/12/21 4:30:14\"," +
                "        \"out_station_time\": \"2023/12/24 12:30:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "                \"mo_no\": \"HS20230654-02\"," +
                "                \"machine_code\": \"CS-00326\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "                \"mo_no\": \"HS20230654-02\"," +
                "                \"machine_code\": \"SY-00064\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"a20c68cd-d58d-44e5-82f4-b350074c9326\"," +
                "        \"step_sequence\": \"1\"," +
                "        \"group_id\": \"80242a58-fc63-46cf-9b27-392409d217ec\"," +
                "        \"group_name\": \"打字\"," +
                "        \"mo_no\": \"HD20230005-01\"," +
                "        \"inner_order_code\": \"HD20230005\"," +
                "        \"key_part_no\": \"XN6133-G-1\"," +
                "        \"target_qty\": \"407\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"H2312009\"," +
                "        \"in_station_time\": \"2023/12/23 10:08:55\"," +
                "        \"out_station_time\": \"2023/12/24 0:00:00\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"a565db49-cdde-4536-bd25-f1b6095b9e6d\"," +
                "        \"step_sequence\": \"8\"," +
                "        \"group_id\": \"e895a0d4-d3e9-431b-aebf-afba787c6656\"," +
                "        \"group_name\": \"OS常温测试（终测）\"," +
                "        \"mo_no\": \"HC20230550-03\"," +
                "        \"inner_order_code\": \"HC20230550\"," +
                "        \"key_part_no\": \"XND2260MQP\"," +
                "        \"target_qty\": \"1435\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y23227B/0-h\"," +
                "        \"in_station_time\": \"2023/12/24 9:12:26\"," +
                "        \"out_station_time\": \"2023/12/24 20:13:40\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"e895a0d4-d3e9-431b-aebf-afba787c6656\"," +
                "                \"mo_no\": \"HC20230550-03\"," +
                "                \"machine_code\": \"CS-00246\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"e895a0d4-d3e9-431b-aebf-afba787c6656\"," +
                "                \"mo_no\": \"HC20230550-03\"," +
                "                \"machine_code\": \"CS-00247\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"e895a0d4-d3e9-431b-aebf-afba787c6656\"," +
                "                \"mo_no\": \"HC20230550-03\"," +
                "                \"machine_code\": \"CS-00247\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"e895a0d4-d3e9-431b-aebf-afba787c6656\"," +
                "                \"mo_no\": \"HC20230550-03\"," +
                "                \"machine_code\": \"CS-00247\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"a8a760b7-efd2-4b8e-bd19-8fcc3d458a14\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"5dac2802-2e1d-475e-a8c4-cdbff3158ea5\"," +
                "        \"group_name\": \"稳定性烘焙\"," +
                "        \"mo_no\": \"HC20230613-05\"," +
                "        \"inner_order_code\": \"HC20230613\"," +
                "        \"key_part_no\": \"XND4101MCB\"," +
                "        \"target_qty\": \"450\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y203676B/0-o；2417\"," +
                "        \"in_station_time\": \"2023/12/23 4:50:25\"," +
                "        \"out_station_time\": \"2023/12/24 4:50:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"5dac2802-2e1d-475e-a8c4-cdbff3158ea5\"," +
                "                \"mo_no\": \"HC20230613-05\"," +
                "                \"machine_code\": \"SY-00102\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"aed9ed9f-66e6-4e34-9acd-25586213bc66\"," +
                "        \"step_sequence\": \"9\"," +
                "        \"group_id\": \"b8bbd729-8104-4f95-8f4e-977105032dd8\"," +
                "        \"group_name\": \"PDA计算\"," +
                "        \"mo_no\": \"HC20230211-01\"," +
                "        \"inner_order_code\": \"HC20230211\"," +
                "        \"key_part_no\": \"HKA2910-FSC\"," +
                "        \"target_qty\": \"1700\"," +
                "        \"cust_code\": \"XA20220006\"," +
                "        \"cust_lot\": \"2333\"," +
                "        \"in_station_time\": \"2023/12/24 6:16:00\"," +
                "        \"out_station_time\": \"2023/12/24 9:00:00\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"b27c39eb-065a-413b-9f69-68ba39ea6dd8\"," +
                "        \"step_sequence\": \"4\"," +
                "        \"group_id\": \"27014f3e-6dff-414d-86a5-1a32c8b65e94\"," +
                "        \"group_name\": \"老化后低温静态测试\"," +
                "        \"mo_no\": \"HC20230631-01\"," +
                "        \"inner_order_code\": \"HC20230631\"," +
                "        \"key_part_no\": \"SW1764BMT(2.5)\"," +
                "        \"target_qty\": \"249\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"FXY19460/0-b\"," +
                "        \"in_station_time\": \"2023/12/24 20:39:00\"," +
                "        \"out_station_time\": \"2023/12/24 23:00:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"27014f3e-6dff-414d-86a5-1a32c8b65e94\"," +
                "                \"mo_no\": \"HC20230631-01\"," +
                "                \"machine_code\": \"CS-00171\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"27014f3e-6dff-414d-86a5-1a32c8b65e94\"," +
                "                \"mo_no\": \"HC20230631-01\"," +
                "                \"machine_code\": \"CS-00441\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"27014f3e-6dff-414d-86a5-1a32c8b65e94\"," +
                "                \"mo_no\": \"HC20230631-01\"," +
                "                \"machine_code\": \"CS-00268\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"b2bfa247-4076-4d3f-ab18-7de27d6c453a\"," +
                "        \"step_sequence\": \"11\"," +
                "        \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "        \"group_name\": \"老化后常温测试\"," +
                "        \"mo_no\": \"HC20230554-02\"," +
                "        \"inner_order_code\": \"HC20230554\"," +
                "        \"key_part_no\": \"XND4101MCB\"," +
                "        \"target_qty\": \"450\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y203676B/0-n；2409\"," +
                "        \"in_station_time\": \"2023/12/24 9:42:34\"," +
                "        \"out_station_time\": \"2023/12/24 17:44:48\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00167\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00167\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00168\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00168\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00263\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00263\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00348\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "                \"mo_no\": \"HC20230554-02\"," +
                "                \"machine_code\": \"CS-00348\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"b4703fde-b0f5-4fbc-9c6e-c225c48b111e\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"10b8631a-acd0-4858-b874-4b7030400c9b\"," +
                "        \"group_name\": \"FQC\"," +
                "        \"mo_no\": \"HS20230610-03\"," +
                "        \"inner_order_code\": \"HS20230610\"," +
                "        \"key_part_no\": \"GM4680-1000\"," +
                "        \"target_qty\": \"115\"," +
                "        \"cust_code\": \"CD20230015\"," +
                "        \"cust_lot\": \"2318\"," +
                "        \"in_station_time\": \"2023/12/23 9:45:30\"," +
                "        \"out_station_time\": \"2023/12/24 6:31:53\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"b9fdc351-0234-47b9-974d-d8159193a355\"," +
                "        \"step_sequence\": \"3\"," +
                "        \"group_id\": \"0024c337-fa52-44f1-812d-2b0d4fc3bf0c\"," +
                "        \"group_name\": \"老化前常温AC测试\"," +
                "        \"mo_no\": \"HC20230621\"," +
                "        \"inner_order_code\": \"HC20230621\"," +
                "        \"key_part_no\": \"SX8042MF\"," +
                "        \"target_qty\": \"1926\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"RBFXY231142/0-h\"," +
                "        \"in_station_time\": \"2023/12/23 20:31:46\"," +
                "        \"out_station_time\": \"2023/12/24 0:31:37\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"baec17c3-d6f7-46cb-8e2b-15beff23833f\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"5dac2802-2e1d-475e-a8c4-cdbff3158ea5\"," +
                "        \"group_name\": \"稳定性烘焙\"," +
                "        \"mo_no\": \"HC20230613-02\"," +
                "        \"inner_order_code\": \"HC20230613\"," +
                "        \"key_part_no\": \"XND4101MCB\"," +
                "        \"target_qty\": \"450\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y203676B/0-o；2417\"," +
                "        \"in_station_time\": \"2023/12/23 4:50:49\"," +
                "        \"out_station_time\": \"2023/12/24 4:50:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"5dac2802-2e1d-475e-a8c4-cdbff3158ea5\"," +
                "                \"mo_no\": \"HC20230613-02\"," +
                "                \"machine_code\": \"SY-00102\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"be57c84a-5f17-42eb-bb0f-29a971177adb\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"5dac2802-2e1d-475e-a8c4-cdbff3158ea5\"," +
                "        \"group_name\": \"稳定性烘焙\"," +
                "        \"mo_no\": \"HC20230613-06\"," +
                "        \"inner_order_code\": \"HC20230613\"," +
                "        \"key_part_no\": \"XND4101MCB\"," +
                "        \"target_qty\": \"88\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y203676B/0-o；2417\"," +
                "        \"in_station_time\": \"2023/12/23 4:50:13\"," +
                "        \"out_station_time\": \"2023/12/24 4:50:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"5dac2802-2e1d-475e-a8c4-cdbff3158ea5\"," +
                "                \"mo_no\": \"HC20230613-06\"," +
                "                \"machine_code\": \"SY-00102\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"c4d7531f-ac85-4864-ae04-d2746a8d764a\"," +
                "        \"step_sequence\": \"6\"," +
                "        \"group_id\": \"8122f2af-19c4-4e6b-a776-eea137076049\"," +
                "        \"group_name\": \"外部目检1\"," +
                "        \"mo_no\": \"HC20230602-04\"," +
                "        \"inner_order_code\": \"HC20230602\"," +
                "        \"key_part_no\": \"XND4102MCB\"," +
                "        \"target_qty\": \"590\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"Y203677B/0-y\"," +
                "        \"in_station_time\": \"2023/12/23 17:01:29\"," +
                "        \"out_station_time\": \"2023/12/24 7:29:52\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"cac31167-fb96-450b-9b9f-ac9e8e8788e1\"," +
                "        \"step_sequence\": \"3\"," +
                "        \"group_id\": \"b93d1dd0-a3b9-4d38-95d8-42b10c46b111\"," +
                "        \"group_name\": \"老化后常温纹波测试\"," +
                "        \"mo_no\": \"HC20230631-02\"," +
                "        \"inner_order_code\": \"HC20230631\"," +
                "        \"key_part_no\": \"SW1764BMT(2.5)\"," +
                "        \"target_qty\": \"719\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"FXY19460/0-b\"," +
                "        \"in_station_time\": \"2023/12/24 0:09:23\"," +
                "        \"out_station_time\": \"2023/12/24 6:08:25\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"cffa09cc-16ea-4230-9d2c-f3f49efd017a\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"10b8631a-acd0-4858-b874-4b7030400c9b\"," +
                "        \"group_name\": \"FQC\"," +
                "        \"mo_no\": \"HS20230610-02\"," +
                "        \"inner_order_code\": \"HS20230610\"," +
                "        \"key_part_no\": \"GM4680-1000\"," +
                "        \"target_qty\": \"144\"," +
                "        \"cust_code\": \"CD20230015\"," +
                "        \"cust_lot\": \"2318\"," +
                "        \"in_station_time\": \"2023/12/23 9:44:02\"," +
                "        \"out_station_time\": \"2023/12/24 6:32:33\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"d573e271-a7b0-4f44-a018-c9e67c98d48a\"," +
                "        \"step_sequence\": \"7\"," +
                "        \"group_id\": \"0a84b130-c9dd-4e04-aae3-19f5da18ceaa\"," +
                "        \"group_name\": \"老化后低温测试\"," +
                "        \"mo_no\": \"HC20230519-4\"," +
                "        \"inner_order_code\": \"HC20230519\"," +
                "        \"key_part_no\": \"HKA32133-PSC\"," +
                "        \"target_qty\": \"1000\"," +
                "        \"cust_code\": \"XA20220006\"," +
                "        \"cust_lot\": \"2345\"," +
                "        \"in_station_time\": \"2023/12/23 20:30:35\"," +
                "        \"out_station_time\": \"2023/12/24 7:00:56\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"db91efb9-1ad8-4131-a089-d83b893d0d70\"," +
                "        \"step_sequence\": \"2\"," +
                "        \"group_id\": \"10b8631a-acd0-4858-b874-4b7030400c9b\"," +
                "        \"group_name\": \"FQC\"," +
                "        \"mo_no\": \"HS20230610-01\"," +
                "        \"inner_order_code\": \"HS20230610\"," +
                "        \"key_part_no\": \"GM4680-1000\"," +
                "        \"target_qty\": \"145\"," +
                "        \"cust_code\": \"CD20230015\"," +
                "        \"cust_lot\": \"2318\"," +
                "        \"in_station_time\": \"2023/12/23 9:16:57\"," +
                "        \"out_station_time\": \"2023/12/24 6:33:08\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"e43704dc-edb6-4384-90ca-80cf14fde9cc\"," +
                "        \"step_sequence\": \"4\"," +
                "        \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "        \"group_name\": \"老炼\"," +
                "        \"mo_no\": \"HC20230621-01\"," +
                "        \"inner_order_code\": \"HC20230621\"," +
                "        \"key_part_no\": \"SX8042MF\"," +
                "        \"target_qty\": \"1859\"," +
                "        \"cust_code\": \"CQ20190002\"," +
                "        \"cust_lot\": \"RBFXY231142/0-e\"," +
                "        \"in_station_time\": \"2023/12/17 16:10:00\"," +
                "        \"out_station_time\": \"2023/12/24 8:10:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "                \"mo_no\": \"HC20230621-01\"," +
                "                \"machine_code\": \"SY-00008\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "                \"mo_no\": \"HC20230621-01\"," +
                "                \"machine_code\": \"SY-00020\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c3a007bb-a0fb-4afb-8f2b-ef55934cf024\"," +
                "                \"mo_no\": \"HC20230621-01\"," +
                "                \"machine_code\": \"SY-00075\"" +
                "            }" +
                "        ]" +
                "    }," +
                "    {" +
                "        \"wid\": \"eb75d6a4-7736-4da7-932b-341131ce2476\"," +
                "        \"step_sequence\": \"4\"," +
                "        \"group_id\": \"c5d2d5f5-333e-4474-a011-a91318e6e871\"," +
                "        \"group_name\": \"验收低温测试\"," +
                "        \"mo_no\": \"HC20230665-01\"," +
                "        \"inner_order_code\": \"HC20230665\"," +
                "        \"key_part_no\": \"XND2233IQQ\"," +
                "        \"target_qty\": \"63\"," +
                "        \"cust_code\": \"CQ20190001\"," +
                "        \"cust_lot\": \"2212\"," +
                "        \"in_station_time\": \"2023/12/24 9:32:18\"," +
                "        \"out_station_time\": \"2023/12/24 12:12:31\"," +
                "        \"details\": []" +
                "    }," +
                "    {" +
                "        \"wid\": \"ebfcc38d-c7b2-4eac-896a-8e4a0c1df35f\"," +
                "        \"step_sequence\": \"8\"," +
                "        \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "        \"group_name\": \"老化后常温测试\"," +
                "        \"mo_no\": \"HC20230211-01\"," +
                "        \"inner_order_code\": \"HC20230211\"," +
                "        \"key_part_no\": \"HKA2910-FSC\"," +
                "        \"target_qty\": \"1700\"," +
                "        \"cust_code\": \"XA20220006\"," +
                "        \"cust_lot\": \"2333\"," +
                "        \"in_station_time\": \"2023/12/16 20:39:14\"," +
                "        \"out_station_time\": \"2023/12/24 6:20:00\"," +
                "        \"details\": [" +
                "            {" +
                "                \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "                \"mo_no\": \"HC20230211-01\"," +
                "                \"machine_code\": \"cs-00447\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "                \"mo_no\": \"HC20230211-01\"," +
                "                \"machine_code\": \"CS-00447\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "                \"mo_no\": \"HC20230211-01\"," +
                "                \"machine_code\": \"cs-00447\"" +
                "            }," +
                "            {" +
                "                \"group_id\": \"c045a79a-011f-4e6a-8196-043b8f0e767c\"," +
                "                \"mo_no\": \"HC20230211-01\"," +
                "                \"machine_code\": \"CS-00447\"" +
                "            }" +
                "        ]" +
                "    }" +
                "]";
        if(date.equals("2023-12-24")){
            return JSON.toJSON(productData);
        }else{
            return null;
        }
    }
}
